
<include file="public/layout" />
<script type="text/javascript" src="__ROOT__/public/static/js/layer/laydate/laydate.js"></script>

<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>审核合伙人列表</h3>
                <h5>同意后方能成为合伙人</h5>
            </div>
        </div>
    </div>
    <!-- 操作说明 -->
    <div id="explanation" class="explanation" style="color: rgb(44, 188, 163); background-color: rgb(237, 251, 248); width: 99%; height: 100%;">
        <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span title="收起提示" id="explanationZoom" style="display: block;"></span>
        </div>
        <ul>
            <li>审核提交申请的合伙人</li>
            <li> 申请地址：域名+/Mobile/User/distributor_apply.html</li>
        </ul>
    </div>
    <div class="flexigrid">
        <div class="mDiv">
            <div class="ftitle">
                <h3>合伙人申请列表</h3>
                <h5>(共{$pager->totalRows}条记录)</h5>
            </div>
            <div title="刷新数据" class="pReload"><i class="fa fa-refresh"></i></div>
            <form class="navbar-form form-inline"  method="post" action=""  name="search-form2" id="search-form2">
                <div class="sDiv">
                    <div class="sDiv2">
                        <input type="text" size="30" id="mobile" placeholder="手机号"  value="{$mobile}" name="mobile" class="qsbox">
                    </div>
                    <div class="sDiv2">
                        <input type="text" size="30" id="realname" placeholder="真实姓名" value="{$realname}" name="realname" class="qsbox" >
                    </div>

                    <div class="sDiv2">
                        <select class="select" id="status" name="status">
                            <option value="">全部</option>
                            <option value="0"<if condition="$_REQUEST['status'] heq '0'">selected</if>>未审核</option>
                            <option value="1"<if condition="$_REQUEST['status'] eq 1">selected</if>>审核通过</option>

                        </select>
                    </div>
                    <div class="sDiv2">
                        <input type="submit" class="btn" value="搜索">
                    </div>
                </div>
            </form>
        </div>
        <div class="hDiv">
            <div class="hDivBox" id="ajax_return">
                <table cellspacing="0" cellpadding="0">
                    <thead>
                    <tr>
                        <th class="sign" axis="col0">
                            <div style="width: 24px;"><i class="ico-check"></i></div>
                        </th>
                        <!--<th align="left" abbr="order_sn" axis="col3" class="">-->
                            <!--<div style="text-align: left; width: 120px;" class="">ID</div>-->
                        <!--</th>-->
                        <th align="left" abbr="consignee" axis="col4" class="">
                            <div style="text-align: left; width: 120px;" class="">会员昵称</div>
                        </th>
                        <th align="left" abbr="consignee" axis="col4" class="">
                            <div style="text-align: left; width: 60px;" class="">头像</div>
                        </th>
                        <th align="center" abbr="article_show" axis="col5" class="">
                            <div style="text-align: center; width: 160px;" class="">手机号</div>
                        </th>
                        <th align="center" abbr="article_time" axis="col6" class="">
                            <div style="text-align: center; width: 120px;" class="">真实姓名</div>
                        </th>
                        <th align="center" abbr="article_time" axis="col6" class="">
                            <div style="text-align: center; width: 120px;" class="">时间</div>
                        </th>
                        <th align="center" abbr="article_time" axis="col6" class="">
                            <div style="text-align: center; width: 90px;" class="">状态</div>
                        </th>
                        <th style="width:100%" axis="col7">
                            <div></div>
                        </th>
                    </tr>
                    </thead>
                </table>
            </div>
        </div>
        <div class="bDiv" style="height: auto;">
            <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
                <table cellspacing="0" cellpadding="0">
                    <tbody>
                        <if condition="empty($userapplyList) eq true">
                        <tr data-id="0">
                            <td class="no-data" align="center" axis="col0" colspan="50">
                                <i class="fa fa-exclamation-circle"></i>没有符合条件的记录
                            </td>
                        </tr>
                        <else/>
                        <volist name="userapplyList" id="v">
                            <tr>
                                <td class="sign" axis="col0">
                                    <div style="width: 24px;"><i class="ico-check"></i></div>
                                </td>
                                <!--<td align="left" abbr="order_sn" axis="col3" class="">-->
                                    <!--<div style="text-align: left; width: 120px;" class="">{$v.id}</div>-->
                                <!--</td>-->
                                <td align="left" abbr="consignee" axis="col4" class="">
                                    <div style="text-align: left; width: 120px;" class="">
                                        <a href="{:U('Admin/user/detail',array('id'=>$v[user_id]))}">
                                            <if condition="$v[nickname] neq ''">
                                                {$v[nickname]}
                                            <else /> -- </if>
                                        </a>
                                    </div>
                                </td>
                                <td align="left" abbr="consignee" axis="col4" class="">
                                    <div style="text-align: left; width: 60px;" class="">
                                        <a href="{:U('Admin/user/detail',array('id'=>$v[user_id]))}">
                                            <img src="{$v[head_pic]}" width="30px;">
                                        </a>
                                    </div>
                                </td>
                                <td align="center" abbr="article_show" axis="col5" class="">
                                    <div style="text-align: center; width: 160px;" class="">
                                            {$v.mobile}
                                    </div>
                                </td>
                                <td align="center" abbr="article_time" axis="col6" class="">
                                    <div style="text-align: center; width: 120px;" class="">{$v.realname}</div>
                                </td>

                                <td align="center" abbr="article_time" axis="col6" class="">
                                    <div style="text-align: center; width: 160px;" class="">{$v.add_time|date="Y-m-d H:i:s",###}</div>
                                </td>
                                <td align="center" abbr="article_time" axis="col6" class="">
                                    <div style="text-align: center; width: 90px;" class="">
                                        <if condition="$v[status] eq 0">
                                            <span style="color: red">未审核</span>
                                            <a class="btn green" href="/Admin/Distribut/applySuccess/user_id/{$v[user_id]}"><i class="fa fa-list-alt"></i>审核</a>
                                        </if>
                                        <if condition="$v[status] eq 1"><span style="color: green">已通过</span></if>
                                    </div>
                                </td>
                                <td style="width:100%" axis="col7">
                                    <div></div>
                                </td>
                            </tr>
                        </volist>
                    </if>
                    </tbody>
                </table>
            </div>
            <div class="iDiv" style="display: none;"></div>
        </div>
        <!--分页位置-->
        <div class="row">
            <div class="col-sm-6 text-left"></div>
            <div class="col-sm-6 text-right">{$show}</div>
        </div>
    </div>
</div>
<script type="text/javascript">


    $(document).ready(function(){


        // 点击刷新数据
        $('.fa-refresh').click(function(){
            location.href = location.href;
        });

        $('#start_time').layDate(1);
        $('#end_time').layDate(1);

        $('.ico-check ' , '.hDivBox').click(function(){
            $('tr' ,'.hDivBox').toggleClass('trSelected' , function(index,currentclass){
                var hasClass = $(this).hasClass('trSelected');
                $('tr' , '#flexigrid').each(function(){
                    if(hasClass){
                        $(this).addClass('trSelected');
                    }else{
                        $(this).removeClass('trSelected');
                    }
                });
            });
        });
    });


</script>
</body>
</html>